package com.nmsl.membership.mapper;

import java.util.List;
import com.nmsl.membership.domain.Membership;

/**
 * 会员表Mapper接口
 * 
 * @author liuyan
 * @date 2025-02-14
 */
//会员列表
public interface MembershipMapper 
{
    /**
     * 查询会员表
     * 
     * @param membershipId 会员表主键
     * @return 会员表
     */
    public Membership selectMembershipByMembershipId(Long membershipId);

    /**
     * 查询会员表列表
     * 
     * @param membership 会员表
     * @return 会员表集合
     */
///////////////查询
//    public List<Membership> selectMembershipList(Membership membership);
    public List<Membership> selectMembershipList(Membership membership);
    /**
     * 新增会员表
     * 
     * @param membership 会员表
     * @return 结果
     */
//    public int insertMembership(Membership membership);
    public int insertMembership(Membership membership);
    /**
     * 修改会员表
     * 
     * @param membership 会员表
     * @return 结果
     */
    public int updateMembership(Membership membership);

    /**
     * 删除会员表
     * 
     * @param membershipId 会员表主键
     * @return 结果
     */
    public int deleteMembershipByMembershipId(Long membershipId);

    /**
     * 批量删除会员表
     * 
     * @param membershipIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMembershipByMembershipIds(Long[] membershipIds);
}
